package cn.tedu.tmallpassport.dao.persist.repository.impl;

import cn.tedu.tmallpassport.dao.persist.mapper.UserMapper;
import cn.tedu.tmallpassport.dao.persist.repository.IUserRepository;
import cn.tedu.tmallpassport.pojo.vo.UserLoginInfoVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
@Slf4j
public class UserRepository implements IUserRepository {
    @Autowired
    private UserMapper mapper;
    @Override
    public UserLoginInfoVO getLoginInfoByUsername(String username) {
        return mapper.getLoginInfoByUsername(username);
    }
}
